// member-join-modal
const { BaseBehavior, COMPONENT_OPTIONS } = require('../../mixins/component');

const EquityList = [{
    icon: 'discount',
    name: '专属特惠',
}, {
    icon: 'gift',
    name: '专享好礼',
}, {
    icon: 'gift',
    name: '特享服务',
}];

Component({
    behaviors: [BaseBehavior],
    options: {
        ...COMPONENT_OPTIONS,
    },
    properties: {
        show: {
            type: Boolean,
            value: false,
        },
        avatar: {
            type: String,
            value: '',
        },
        isGold: {
            type: Boolean,
            value: false,
        },
    },
    data: {
        list: EquityList,
    },
    methods: {
        closePopup() {
            this.setData({
                show: false,
            })
            this.triggerEvent('close');
        },
    }
})
